gl renderer: Scale blur radius
authorTimm Bäder <mail@baedert.org>
Fri, 29 Nov 2019 05:50:44 +0000 (06:50 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 3 Dec 2019 07:40:34 +0000 (08:40 +0100)
We scale the texture size, so as a consequence we have to scale the blur
radius.

gsk/gl/gskglrenderer.c

index d6f5111ba00993b91125dfa0bf28abd562759db8..a49689014aed3bf618d1e2db8777fafbb368c82b 100644 (file)
@@ -1503,8 +1503,7 @@ render_blur_node (GskGLRenderer   *self,
                                          region.texture_id,
                                          node->bounds.size.width * scale,
                                          node->bounds.size.height * scale,
-                                         blur_radius);
-
+                                         blur_radius * scale);
     }
 
   g_assert (blurred_texture_id != 0);
@@ -1689,7 +1688,7 @@ render_outset_shadow_node (GskGLRenderer   *self,
                                          texture_id,
                                          texture_width,
                                          texture_height,
-                                         blur_radius);
+                                         blur_radius * scale);
 
       gsk_gl_driver_mark_texture_permanent (self->gl_driver, blurred_texture_id);
       gsk_gl_shadow_cache_commit (&self->shadow_cache,